/* eslint-disable no-useless-escape */
const RegConfig = {
    device_name: /^[A-Za-z0-9_\u4e00-\u9fa5]{1,20}$/,
    groupname: /^[\w\-\u4e00-\u9fa5]{1,10}$/,
    filename: /^[^\\/:\*\?""<>|]{1,30}$/,
    description_length: /^.{0,30}$/,
    parm_value_number: /^[1-9][0-9]*$/,
    time_value_number: /^[0-9]*$/,
    float_number: /^(\d+)(\.\d+)?$/,
    price_float_number: /^(\d+)(\.\d{1,2})?$/,
    int_number: /^[1-9][0-9]*$/,
    username: /^[a-zA-Z][a-zA-Z0-9_]{2,15}$/,
    telphone: /^\d+$/,
    rentHour: /^[1-9][0-9]{0,8}$/,
    friend_alias: /^[\w\-\u4e00-\u9fa5]{1,20}$/,
    friend_note: /^[\w\-\u4e00-\u9fa5]{1,50}$/,
    cycleHour: /^([1-9][0-9]{0,2}|[1-4][0-9]{0,4})$/,
    cycleTime: /^([1-9][0-9]{0,2}|1[0-9]{0,3})$/,
    advanceDay: /^(\d|[1-2]\d|30)$/,
    email: /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/,
    uuid: /^[a-zA-Z0-9-]{1,32}$/,
    attribute_identifier: /^[a-zA-Z][a-zA-Z0-9_]{3,49}$/,
    database_name: /^[A-Za-z0-9_\-.()\s\u4e00-\u9fa5]{1,40}$/,
    uploadfile_name: /^[^\\/:\*\?""<>|]+$/,
    material_code: /^[a-zA-Z0-9][\.a-zA-Z0-9_-]{3,19}$/,
    bitch_code: /^[a-zA-Z0-9][\.a-zA-Z0-9_-]{0,19}$/,
    warehouse_amount: /^[1-9][0-9]{0,8}$/,
    phone_number: /^1[3-9]\d{9}$/
};
export default RegConfig;
